package com.lujianfei.common

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity

abstract class BaseActivity: AppCompatActivity()  {

    abstract fun resouceId(): Int

    abstract fun initView()

    abstract fun initData()

    abstract fun initEvent()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(resouceId())
        initView()
        initData()
        initEvent()
    }
}